
<h1>Log in</h1>
<p>Please log in here</p>
<form id="loginform" name="loginform" method="post" action="<?php echo $this->url(array('module'=>'default','controller'=>'auth','action'=>'identify'));?>">
	<div class="logincontent">
		<div class="line">
			<div class="loginlabel">Email :</div><div class="loginfield"><input type="text" name="username" value="" /></div>
		</div>
		<div class="line">
			<div class="loginlabel">Mote de passe :</div><div class="loginfield"><input type="password" name="password" value="" /></div>
		</div>
		<?php if(isset($this->error)):?>
		<div style="color: red;"><?php echo $this->escape(current($this->error));?></div>
		<?php endif;?>
		<div class="line">
			<div class="loginfield"><input type="submit" name="login" value="login" /></div>
		</div>
	</div>
</form>
<?php echo $this->headScript()->appendFile('/js/jquery.validate.min.js','text/javascript');?>
<?php echo $this->headLink()->appendStylesheet('/styles/login.css');?>
<script type="text/javascript">
$(window).ready(function(){
	$("#loginform").validate({
		rules:{
			username:{required:true},
			password:{required:true}
		}
	});
});
</script>